package javaBase.LinkList;

/**
 * @program: jvm
 * @description
 * @author: tkk fendoukaoziji
 * @create: 2019-05-01 10:05
 **/
public class Link {
    private int iData;
    private double dDdata;
    private Link next;

    public Link(int iData, double dDdata) {
        this.iData = iData;
        this.dDdata = dDdata;
    }
    public Link(long dDdata){
        this.dDdata=dDdata;
    }

    public void displayLink(){
        System.out.print("{"+iData+","+dDdata+"}");
    }
    public int getiData() {
        return iData;
    }

    public void setiData(int iData) {
        this.iData = iData;
    }

    public double getdDdata() {
        return dDdata;
    }

    public void setdDdata(double dDdata) {
        this.dDdata = dDdata;
    }

    public Link getNext() {
        return next;
    }

    public void setNext(Link next) {
        this.next = next;
    }
}
